class network {
  file {
    '/etc/hostname':
      source => "puppet:///modules/${module_name}/hostname";

    '/etc/hosts':
      source => "puppet:///modules/${module_name}/hosts";

    '/etc/network/interfaces.d/eth0.cfg':
      source => "puppet:///modules/${module_name}/eth0.cfg";
  }

  service {
    'networking':
      enable => true,
      subscribe => File['/etc/network/interfaces.d/eth0.cfg'];

    'network-manager':
      enable => true;
    }
}
